package com.video.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.sql.Timestamp;


/**
 * @author maomao
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "昵称不能为空")
    private String username;

    @NotBlank(message = "行业不能为空")
    private String industry;

    @NotBlank(message = "简介不能为空")
    private String description;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 联系人
     */
    private String contactPerson;

    /**
     * 手机号
     */
    private String phoneNumber;

    private String qq;

    private String wechat;

    private String password;

    private Timestamp created;

    private Integer videoCount;

    private Integer status;

    private Integer isAdmin;

    private Integer approveState;

    private Long approveUser;
}
